3.8.81 \(\int \frac {\sqrt {a+c x^4}}{x^2} \, dx\) [781]

Optimal. Leaf size=224 \[ -\frac {\sqrt {a+c x^4}}{x}+\frac {2 \sqrt {c} x \sqrt {a+c x^4}}{\sqrt {a}+\sqrt {c} x^2}-\frac {2 \sqrt [4]{a} \sqrt [4]{c} \left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} E\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{2}\right )}{\sqrt {a+c x^4}}+\frac {\sqrt [4]{a} \sqrt [4]{c} \left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} F\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{2}\right )}{\sqrt {a+c x^4}} \]

[Out]

-(c*x^4+a)^(1/2)/x+2*x*c^(1/2)*(c*x^4+a)^(1/2)/(a^(1/2)+x^2*c^(1/2))-2*a^(1/4)*c^(1/4)*(cos(2*arctan(c^(1/4)*x
/a^(1/4)))^2)^(1/2)/cos(2*arctan(c^(1/4)*x/a^(1/4)))*EllipticE(sin(2*arctan(c^(1/4)*x/a^(1/4))),1/2*2^(1/2))*(
a^(1/2)+x^2*c^(1/2))*((c*x^4+a)/(a^(1/2)+x^2*c^(1/2))^2)^(1/2)/(c*x^4+a)^(1/2)+a^(1/4)*c^(1/4)*(cos(2*arctan(c
^(1/4)*x/a^(1/4)))^2)^(1/2)/cos(2*arctan(c^(1/4)*x/a^(1/4)))*EllipticF(sin(2*arctan(c^(1/4)*x/a^(1/4))),1/2*2^
(1/2))*(a^(1/2)+x^2*c^(1/2))*((c*x^4+a)/(a^(1/2)+x^2*c^(1/2))^2)^(1/2)/(c*x^4+a)^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.05, antiderivative size = 224, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.267, Rules used = {283, 311, 226, 1210} \begin {gather*} \frac {\sqrt [4]{a} \sqrt [4]{c} \left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} F\left (2 \text {ArcTan}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{2}\right )}{\sqrt {a+c x^4}}-\frac {2 \sqrt [4]{a} \sqrt [4]{c} \left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} E\left (2 \text {ArcTan}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{2}\right )}{\sqrt {a+c x^4}}-\frac {\sqrt {a+c x^4}}{x}+\frac {2 \sqrt {c} x \sqrt {a+c x^4}}{\sqrt {a}+\sqrt {c} x^2} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Sqrt[a + c*x^4]/x^2,x]

[Out]

-(Sqrt[a + c*x^4]/x) + (2*Sqrt[c]*x*Sqrt[a + c*x^4])/(Sqrt[a] + Sqrt[c]*x^2) - (2*a^(1/4)*c^(1/4)*(Sqrt[a] + S
qrt[c]*x^2)*Sqrt[(a + c*x^4)/(Sqrt[a] + Sqrt[c]*x^2)^2]*EllipticE[2*ArcTan[(c^(1/4)*x)/a^(1/4)], 1/2])/Sqrt[a
+ c*x^4] + (a^(1/4)*c^(1/4)*(Sqrt[a] + Sqrt[c]*x^2)*Sqrt[(a + c*x^4)/(Sqrt[a] + Sqrt[c]*x^2)^2]*EllipticF[2*Ar
cTan[(c^(1/4)*x)/a^(1/4)], 1/2])/Sqrt[a + c*x^4]

Rule 226

Int[1/Sqrt[(a_) + (b_.)*(x_)^4], x_Symbol] :> With[{q = Rt[b/a, 4]}, Simp[(1 + q^2*x^2)*(Sqrt[(a + b*x^4)/(a*(
1 + q^2*x^2)^2)]/(2*q*Sqrt[a + b*x^4]))*EllipticF[2*ArcTan[q*x], 1/2], x]] /; FreeQ[{a, b}, x] && PosQ[b/a]

Rule 283

Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[(c*x)^(m + 1)*((a + b*x^n)^p/(c*(m + 1
))), x] - Dist[b*n*(p/(c^n*(m + 1))), Int[(c*x)^(m + n)*(a + b*x^n)^(p - 1), x], x] /; FreeQ[{a, b, c}, x] &&
IGtQ[n, 0] && GtQ[p, 0] && LtQ[m, -1] &&  !ILtQ[(m + n*p + n + 1)/n, 0] && IntBinomialQ[a, b, c, n, m, p, x]

Rule 311

Int[(x_)^2/Sqrt[(a_) + (b_.)*(x_)^4], x_Symbol] :> With[{q = Rt[b/a, 2]}, Dist[1/q, Int[1/Sqrt[a + b*x^4], x],
 x] - Dist[1/q, Int[(1 - q*x^2)/Sqrt[a + b*x^4], x], x]] /; FreeQ[{a, b}, x] && PosQ[b/a]

Rule 1210

Int[((d_) + (e_.)*(x_)^2)/Sqrt[(a_) + (c_.)*(x_)^4], x_Symbol] :> With[{q = Rt[c/a, 4]}, Simp[(-d)*x*(Sqrt[a +
 c*x^4]/(a*(1 + q^2*x^2))), x] + Simp[d*(1 + q^2*x^2)*(Sqrt[(a + c*x^4)/(a*(1 + q^2*x^2)^2)]/(q*Sqrt[a + c*x^4
]))*EllipticE[2*ArcTan[q*x], 1/2], x] /; EqQ[e + d*q^2, 0]] /; FreeQ[{a, c, d, e}, x] && PosQ[c/a]

Rubi steps

\begin {align*} \int \frac {\sqrt {a+c x^4}}{x^2} \, dx &=-\frac {\sqrt {a+c x^4}}{x}+(2 c) \int \frac {x^2}{\sqrt {a+c x^4}} \, dx\\ &=-\frac {\sqrt {a+c x^4}}{x}+\left (2 \sqrt {a} \sqrt {c}\right ) \int \frac {1}{\sqrt {a+c x^4}} \, dx-\left (2 \sqrt {a} \sqrt {c}\right ) \int \frac {1-\frac {\sqrt {c} x^2}{\sqrt {a}}}{\sqrt {a+c x^4}} \, dx\\ &=-\frac {\sqrt {a+c x^4}}{x}+\frac {2 \sqrt {c} x \sqrt {a+c x^4}}{\sqrt {a}+\sqrt {c} x^2}-\frac {2 \sqrt [4]{a} \sqrt [4]{c} \left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} E\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{2}\right )}{\sqrt {a+c x^4}}+\frac {\sqrt [4]{a} \sqrt [4]{c} \left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} F\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{2}\right )}{\sqrt {a+c x^4}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 4 in optimal.
time = 9.47, size = 49, normalized size = 0.22 \begin {gather*} -\frac {\sqrt {a+c x^4} \, _2F_1\left (-\frac {1}{2},-\frac {1}{4};\frac {3}{4};-\frac {c x^4}{a}\right )}{x \sqrt {1+\frac {c x^4}{a}}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[a + c*x^4]/x^2,x]

[Out]

-((Sqrt[a + c*x^4]*Hypergeometric2F1[-1/2, -1/4, 3/4, -((c*x^4)/a)])/(x*Sqrt[1 + (c*x^4)/a]))

________________________________________________________________________________________

Maple [C] Result contains complex when optimal does not.
time = 0.14, size = 112, normalized size = 0.50

method result size
default \(-\frac {\sqrt {x^{4} c +a}}{x}+\frac {2 i \sqrt {c}\, \sqrt {a}\, \sqrt {1-\frac {i \sqrt {c}\, x^{2}}{\sqrt {a}}}\, \sqrt {1+\frac {i \sqrt {c}\, x^{2}}{\sqrt {a}}}\, \left (\EllipticF \left (x \sqrt {\frac {i \sqrt {c}}{\sqrt {a}}}, i\right )-\EllipticE \left (x \sqrt {\frac {i \sqrt {c}}{\sqrt {a}}}, i\right )\right )}{\sqrt {\frac {i \sqrt {c}}{\sqrt {a}}}\, \sqrt {x^{4} c +a}}\) \(112\)
risch \(-\frac {\sqrt {x^{4} c +a}}{x}+\frac {2 i \sqrt {c}\, \sqrt {a}\, \sqrt {1-\frac {i \sqrt {c}\, x^{2}}{\sqrt {a}}}\, \sqrt {1+\frac {i \sqrt {c}\, x^{2}}{\sqrt {a}}}\, \left (\EllipticF \left (x \sqrt {\frac {i \sqrt {c}}{\sqrt {a}}}, i\right )-\EllipticE \left (x \sqrt {\frac {i \sqrt {c}}{\sqrt {a}}}, i\right )\right )}{\sqrt {\frac {i \sqrt {c}}{\sqrt {a}}}\, \sqrt {x^{4} c +a}}\) \(112\)
elliptic \(-\frac {\sqrt {x^{4} c +a}}{x}+\frac {2 i \sqrt {c}\, \sqrt {a}\, \sqrt {1-\frac {i \sqrt {c}\, x^{2}}{\sqrt {a}}}\, \sqrt {1+\frac {i \sqrt {c}\, x^{2}}{\sqrt {a}}}\, \left (\EllipticF \left (x \sqrt {\frac {i \sqrt {c}}{\sqrt {a}}}, i\right )-\EllipticE \left (x \sqrt {\frac {i \sqrt {c}}{\sqrt {a}}}, i\right )\right )}{\sqrt {\frac {i \sqrt {c}}{\sqrt {a}}}\, \sqrt {x^{4} c +a}}\) \(112\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((c*x^4+a)^(1/2)/x^2,x,method=_RETURNVERBOSE)

[Out]

-(c*x^4+a)^(1/2)/x+2*I*c^(1/2)*a^(1/2)/(I/a^(1/2)*c^(1/2))^(1/2)*(1-I/a^(1/2)*c^(1/2)*x^2)^(1/2)*(1+I/a^(1/2)*
c^(1/2)*x^2)^(1/2)/(c*x^4+a)^(1/2)*(EllipticF(x*(I/a^(1/2)*c^(1/2))^(1/2),I)-EllipticE(x*(I/a^(1/2)*c^(1/2))^(
1/2),I))

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x^4+a)^(1/2)/x^2,x, algorithm="maxima")

[Out]

integrate(sqrt(c*x^4 + a)/x^2, x)

________________________________________________________________________________________

Fricas [F]
time = 0.08, size = 15, normalized size = 0.07 \begin {gather*} {\rm integral}\left (\frac {\sqrt {c x^{4} + a}}{x^{2}}, x\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x^4+a)^(1/2)/x^2,x, algorithm="fricas")

[Out]

integral(sqrt(c*x^4 + a)/x^2, x)

________________________________________________________________________________________

Sympy [C] Result contains complex when optimal does not.
time = 0.41, size = 41, normalized size = 0.18 \begin {gather*} \frac {\sqrt {a} \Gamma \left (- \frac {1}{4}\right ) {{}_{2}F_{1}\left (\begin {matrix} - \frac {1}{2}, - \frac {1}{4} \\ \frac {3}{4} \end {matrix}\middle | {\frac {c x^{4} e^{i \pi }}{a}} \right )}}{4 x \Gamma \left (\frac {3}{4}\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x**4+a)**(1/2)/x**2,x)

[Out]

sqrt(a)*gamma(-1/4)*hyper((-1/2, -1/4), (3/4,), c*x**4*exp_polar(I*pi)/a)/(4*x*gamma(3/4))

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x^4+a)^(1/2)/x^2,x, algorithm="giac")

[Out]

integrate(sqrt(c*x^4 + a)/x^2, x)

________________________________________________________________________________________

Mupad [B]
time = 1.28, size = 39, normalized size = 0.17 \begin {gather*} \frac {\sqrt {c\,x^4+a}\,{{}}_2{\mathrm {F}}_1\left (-\frac {1}{2},-\frac {1}{4};\ \frac {3}{4};\ -\frac {a}{c\,x^4}\right )}{x\,\sqrt {\frac {a}{c\,x^4}+1}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + c*x^4)^(1/2)/x^2,x)

[Out]

((a + c*x^4)^(1/2)*hypergeom([-1/2, -1/4], 3/4, -a/(c*x^4)))/(x*(a/(c*x^4) + 1)^(1/2))

________________________________________________________________________________________